package com.cskaoyan.bean.zhao_order_bean;

import com.cskaoyan.bean.User;
import lombok.Data;

import java.util.List;

/**
 * <h3>market</h3>
 *
 * @author:Zhao
 * @date:2021-10-19 14:54:14
 * @description:
 */
@Data
public class DetailBasePageData<T> {
    Order order;
    List<T> orderGoods;
    User user;

    public static DetailBasePageData ok(Order order, List orderGoods, User user) {

        DetailBasePageData<Order> orderDetailBasePageData = new DetailBasePageData<>();
        orderDetailBasePageData.setOrder(order);
        orderDetailBasePageData.setOrderGoods(orderGoods);
        orderDetailBasePageData.setUser(user);

        return orderDetailBasePageData;
    }
}
